#ifndef _ParseServerImpl
#define _ParseServerImpl
#include "../LibHttpServer/HttpServer.h"
#include "ServerInterface.h"

extern "C"
{
	int  InitServer();
	void GetShareFolders(void* conn,const hs_request *buf);
	void ParseServerContent(void* conn,const hs_request *buf);
	void GetThumbnail(void * conn, const hs_request *buf);
	void DownloadFile(void * conn, const hs_request *buf);
	
	// Create the CHomeServerClass
	IHomeServer * CreateHomeServer();
	void DeleteHomeServer();

	// Server Side HTTP Bridge functions.
	void LoginToGoogle(void* conn, const hs_request * buf);
	void Logout(void * conn, const hs_request * buf);
	void GetServerStatus(void* conn, const hs_request * buf);
	void AddFolder(void* conn, const hs_request * buf);
	void RemoveFolder(void* conn, const hs_request * buf);
	void StopServer(void* conn, const hs_request * buf);

	// test func
	void TestConfigFile();
}

#endif